#include <stdio.h>
#include <string.h>

typedef struct __elem
{
   union
   {
        short i;
        struct
        {
                char a;
                char b;
        }n;
   }num;
}elem;

int main()
{
        elem test;
        test.num.i=0x3141;
        printf("%x %x\n",test.num.n.a,test.num.n.b);

        test.num.n.a=0x51;
        test.num.n.b=0x61;
        printf("%x\n",test.num.i);

        //if(test.num.n.b & 0x1)
        //      printf("ok\n");
        return 0;
}
